<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<html>
	<head>
		<meta charset="utf-8">
		<title>payroll management : <spring:message code="payroll.new" text="New payroll" var="newpayroll" /></title>
	</head> 
	<body>
		<header>
		<h1>${newPayroll}</h1>
			<nav>
				<%@include file="Payroll.jsp" %>
			</nav>
		</header>

		<spring:url value="/payroll/save" var="urlsave" />
		<form:form method="post" action="${urlsave}" commandName="payroll">

 <div>
        	<form:label path="description"><spring:message code="payroll.description" text="description" /></form:label>
        	<form:errors path="description" />
        </div>
        <div><form:input path="description" /></div> 
        
      
        
        
        <div>
        	<form:label path="date"><spring:message code="payroll.date" text="date" /></form:label>
        	<form:errors path="date" />
        </div>
        <div><form:input path="date" /></div> 
        
           <div>
        	<form:label path="gross"><spring:message code="payroll.gross" text="gross" /></form:label>
        	<form:errors path="gross" />
        </div>
        <div><form:input path="gross" /></div> 
        
           <div>
        	<form:label path="wage"><spring:message code="payroll.wage" text="wage" /></form:label>
        	<form:errors path="wage" />
        </div>
        <div><form:input path="wage" /></div> 
        
           <div>
        	<form:label path="idemployee"><spring:message code="payroll.idemployee" text="idemployee" /></form:label>
        	<form:errors path="idemployee" />
        </div>
        <div><form:input path="idemployee" /></div> 
      
        
        <div>
            <input type="submit" value="${newPayroll}" />
        </div>
     
</form:form>
	</body>
</html>